﻿using OpenReflect.Domain.Contracts;
using OpenReflect.ServiceContracts;
using OpenReflect.Services.Builders;

namespace OpenReflect.Services
{
	public class AssemblyService : IAssemblyService
	{
		public AssemblyService(IAssemblyBuilder builder)
		{
			AssemblyBuilder = builder;
		}

		public IAssemblyBuilder AssemblyBuilder { get; private set; }

		#region IAssemblyService Members

		public IAssembly GetAssemblyFromPath(string path)
		{
			return AssemblyBuilder.CreateAssembly(path);
		}

		#endregion
	}
}